3.277 \(\int \frac{(e+f x) \sec ^2(c+d x)}{a+a \sin (c+d x)} \, dx\)

Optimal. Leaf size=152 \[ -\frac{f \sec ^2(c+d x)}{6 a d^2}+\frac{f \tanh ^{-1}(\sin (c+d x))}{6 a d^2}+\frac{2 f \log (\cos (c+d x))}{3 a d^2}+\frac{f \tan (c+d x) \sec (c+d x)}{6 a d^2}+\frac{2 (e+f x) \tan (c+d x)}{3 a d}-\frac{(e+f x) \sec ^3(c+d x)}{3 a d}+\frac{(e+f x) \tan (c+d x) \sec ^2(c+d x)}{3 a d} \]

[Out]

(f*ArcTanh[Sin[c + d*x]])/(6*a*d^2) + (2*f*Log[Cos[c + d*x]])/(3*a*d^2) - (f*Sec[c + d*x]^2)/(6*a*d^2) - ((e +
 f*x)*Sec[c + d*x]^3)/(3*a*d) + (2*(e + f*x)*Tan[c + d*x])/(3*a*d) + (f*Sec[c + d*x]*Tan[c + d*x])/(6*a*d^2) +
 ((e + f*x)*Sec[c + d*x]^2*Tan[c + d*x])/(3*a*d)

________________________________________________________________________________________

Rubi [A]  time = 0.145067, antiderivative size = 152, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.269, Rules used = {4531, 4185, 4184, 3475, 4409, 3768, 3770} \[ -\frac{f \sec ^2(c+d x)}{6 a d^2}+\frac{f \tanh ^{-1}(\sin (c+d x))}{6 a d^2}+\frac{2 f \log (\cos (c+d x))}{3 a d^2}+\frac{f \tan (c+d x) \sec (c+d x)}{6 a d^2}+\frac{2 (e+f x) \tan (c+d x)}{3 a d}-\frac{(e+f x) \sec ^3(c+d x)}{3 a d}+\frac{(e+f x) \tan (c+d x) \sec ^2(c+d x)}{3 a d} \]

Antiderivative was successfully verified.

[In]

Int[((e + f*x)*Sec[c + d*x]^2)/(a + a*Sin[c + d*x]),x]

[Out]

(f*ArcTanh[Sin[c + d*x]])/(6*a*d^2) + (2*f*Log[Cos[c + d*x]])/(3*a*d^2) - (f*Sec[c + d*x]^2)/(6*a*d^2) - ((e +
 f*x)*Sec[c + d*x]^3)/(3*a*d) + (2*(e + f*x)*Tan[c + d*x])/(3*a*d) + (f*Sec[c + d*x]*Tan[c + d*x])/(6*a*d^2) +
 ((e + f*x)*Sec[c + d*x]^2*Tan[c + d*x])/(3*a*d)

Rule 4531

Int[(((e_.) + (f_.)*(x_))^(m_.)*Sec[(c_.) + (d_.)*(x_)]^(n_.))/((a_) + (b_.)*Sin[(c_.) + (d_.)*(x_)]), x_Symbo
l] :> Dist[1/a, Int[(e + f*x)^m*Sec[c + d*x]^(n + 2), x], x] - Dist[1/b, Int[(e + f*x)^m*Sec[c + d*x]^(n + 1)*
Tan[c + d*x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && IGtQ[m, 0] && EqQ[a^2 - b^2, 0]

Rule 4185

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(n_)*((c_.) + (d_.)*(x_)), x_Symbol] :> -Simp[(b^2*(c + d*x)*Cot[e + f*x]*
(b*Csc[e + f*x])^(n - 2))/(f*(n - 1)), x] + (Dist[(b^2*(n - 2))/(n - 1), Int[(c + d*x)*(b*Csc[e + f*x])^(n - 2
), x], x] - Simp[(b^2*d*(b*Csc[e + f*x])^(n - 2))/(f^2*(n - 1)*(n - 2)), x]) /; FreeQ[{b, c, d, e, f}, x] && G
tQ[n, 1] && NeQ[n, 2]

Rule 4184

Int[csc[(e_.) + (f_.)*(x_)]^2*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> -Simp[((c + d*x)^m*Cot[e + f*x])/f, x]
+ Dist[(d*m)/f, Int[(c + d*x)^(m - 1)*Cot[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rule 4409

Int[((c_.) + (d_.)*(x_))^(m_.)*Sec[(a_.) + (b_.)*(x_)]^(n_.)*Tan[(a_.) + (b_.)*(x_)]^(p_.), x_Symbol] :> Simp[
((c + d*x)^m*Sec[a + b*x]^n)/(b*n), x] - Dist[(d*m)/(b*n), Int[(c + d*x)^(m - 1)*Sec[a + b*x]^n, x], x] /; Fre
eQ[{a, b, c, d, n}, x] && EqQ[p, 1] && GtQ[m, 0]

Rule 3768

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Csc[c + d*x])^(n - 1))/(d*(n -
 1)), x] + Dist[(b^2*(n - 2))/(n - 1), Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1
] && IntegerQ[2*n]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{(e+f x) \sec ^2(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac{\int (e+f x) \sec ^4(c+d x) \, dx}{a}-\frac{\int (e+f x) \sec ^3(c+d x) \tan (c+d x) \, dx}{a}\\ &=-\frac{f \sec ^2(c+d x)}{6 a d^2}-\frac{(e+f x) \sec ^3(c+d x)}{3 a d}+\frac{(e+f x) \sec ^2(c+d x) \tan (c+d x)}{3 a d}+\frac{2 \int (e+f x) \sec ^2(c+d x) \, dx}{3 a}+\frac{f \int \sec ^3(c+d x) \, dx}{3 a d}\\ &=-\frac{f \sec ^2(c+d x)}{6 a d^2}-\frac{(e+f x) \sec ^3(c+d x)}{3 a d}+\frac{2 (e+f x) \tan (c+d x)}{3 a d}+\frac{f \sec (c+d x) \tan (c+d x)}{6 a d^2}+\frac{(e+f x) \sec ^2(c+d x) \tan (c+d x)}{3 a d}+\frac{f \int \sec (c+d x) \, dx}{6 a d}-\frac{(2 f) \int \tan (c+d x) \, dx}{3 a d}\\ &=\frac{f \tanh ^{-1}(\sin (c+d x))}{6 a d^2}+\frac{2 f \log (\cos (c+d x))}{3 a d^2}-\frac{f \sec ^2(c+d x)}{6 a d^2}-\frac{(e+f x) \sec ^3(c+d x)}{3 a d}+\frac{2 (e+f x) \tan (c+d x)}{3 a d}+\frac{f \sec (c+d x) \tan (c+d x)}{6 a d^2}+\frac{(e+f x) \sec ^2(c+d x) \tan (c+d x)}{3 a d}\\ \end{align*}

Mathematica [A]  time = 1.05244, size = 231, normalized size = 1.52 \[ \frac{\cos (c+d x) \left (\sin (c+d x) \left (3 f \log \left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right )+5 f \log \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )-c f+d e\right )+3 f \log \left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right )+5 f \log \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )-c f+d e-f\right )-2 d (e+f x) (\cos (2 (c+d x))-2 \sin (c+d x))}{6 a d^2 (\sin (c+d x)+1) \left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right ) \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[((e + f*x)*Sec[c + d*x]^2)/(a + a*Sin[c + d*x]),x]

[Out]

(-2*d*(e + f*x)*(Cos[2*(c + d*x)] - 2*Sin[c + d*x]) + Cos[c + d*x]*(d*e - f - c*f + 3*f*Log[Cos[(c + d*x)/2] -
 Sin[(c + d*x)/2]] + 5*f*Log[Cos[(c + d*x)/2] + Sin[(c + d*x)/2]] + (d*e - c*f + 3*f*Log[Cos[(c + d*x)/2] - Si
n[(c + d*x)/2]] + 5*f*Log[Cos[(c + d*x)/2] + Sin[(c + d*x)/2]])*Sin[c + d*x]))/(6*a*d^2*(Cos[(c + d*x)/2] - Si
n[(c + d*x)/2])*(Cos[(c + d*x)/2] + Sin[(c + d*x)/2])*(1 + Sin[c + d*x]))

________________________________________________________________________________________

Maple [B]  time = 0.172, size = 466, normalized size = 3.1 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)*sec(d*x+c)^2/(a+a*sin(d*x+c)),x)

[Out]

-1/2/a*e/d/(tan(1/2*d*x+1/2*c)-1)-2/3/a*e/d/(tan(1/2*d*x+1/2*c)+1)^3+1/a*e/d/(tan(1/2*d*x+1/2*c)+1)^2-3/2/a*e/
d/(tan(1/2*d*x+1/2*c)+1)+1/3/a*f/(tan(1/2*d*x+1/2*c)-1)/(tan(1/2*d*x+1/2*c)+1)^3*x/d-4/3/a*f/(tan(1/2*d*x+1/2*
c)-1)/(tan(1/2*d*x+1/2*c)+1)^3*x/d*tan(1/2*d*x+1/2*c)-2/a*f/(tan(1/2*d*x+1/2*c)-1)/(tan(1/2*d*x+1/2*c)+1)^3*x/
d*tan(1/2*d*x+1/2*c)^2-4/3/a*f/(tan(1/2*d*x+1/2*c)-1)/(tan(1/2*d*x+1/2*c)+1)^3*x/d*tan(1/2*d*x+1/2*c)^3+1/3/a*
f/(tan(1/2*d*x+1/2*c)-1)/(tan(1/2*d*x+1/2*c)+1)^3*x/d*tan(1/2*d*x+1/2*c)^4-1/3/a*f/(tan(1/2*d*x+1/2*c)-1)/(tan
(1/2*d*x+1/2*c)+1)^3/d^2*tan(1/2*d*x+1/2*c)+1/3/a*f/(tan(1/2*d*x+1/2*c)-1)/(tan(1/2*d*x+1/2*c)+1)^3/d^2*tan(1/
2*d*x+1/2*c)^3+1/2/a*f/d^2*ln(tan(1/2*d*x+1/2*c)-1)+5/6/a*f/d^2*ln(tan(1/2*d*x+1/2*c)+1)-2/3/a*f/d^2*ln(1+tan(
1/2*d*x+1/2*c)^2)

________________________________________________________________________________________

Maxima [B]  time = 1.13416, size = 1505, normalized size = 9.9 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*sec(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="maxima")

[Out]

-1/12*(8*c*f*(sin(d*x + c)/(cos(d*x + c) + 1) + 3*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 3*sin(d*x + c)^3/(cos(
d*x + c) + 1)^3 - 1)/(a*d + 2*a*d*sin(d*x + c)/(cos(d*x + c) + 1) - 2*a*d*sin(d*x + c)^3/(cos(d*x + c) + 1)^3
- a*d*sin(d*x + c)^4/(cos(d*x + c) + 1)^4) + (4*(8*(d*x + c)*cos(d*x + c) - sin(3*d*x + 3*c) - sin(d*x + c))*c
os(4*d*x + 4*c) + 16*(2*d*x + 4*(d*x + c)*sin(d*x + c) + 2*c + cos(d*x + c))*cos(3*d*x + 3*c) + 8*cos(3*d*x +
3*c)^2 + 8*cos(d*x + c)^2 + 5*(2*(2*sin(3*d*x + 3*c) + 2*sin(d*x + c) + 1)*cos(4*d*x + 4*c) - cos(4*d*x + 4*c)
^2 - 4*cos(3*d*x + 3*c)^2 - 8*cos(3*d*x + 3*c)*cos(d*x + c) - 4*cos(d*x + c)^2 - 4*(cos(3*d*x + 3*c) + cos(d*x
 + c))*sin(4*d*x + 4*c) - sin(4*d*x + 4*c)^2 - 4*(2*sin(d*x + c) + 1)*sin(3*d*x + 3*c) - 4*sin(3*d*x + 3*c)^2
- 4*sin(d*x + c)^2 - 4*sin(d*x + c) - 1)*log(cos(d*x + c)^2 + sin(d*x + c)^2 + 2*sin(d*x + c) + 1) + 3*(2*(2*s
in(3*d*x + 3*c) + 2*sin(d*x + c) + 1)*cos(4*d*x + 4*c) - cos(4*d*x + 4*c)^2 - 4*cos(3*d*x + 3*c)^2 - 8*cos(3*d
*x + 3*c)*cos(d*x + c) - 4*cos(d*x + c)^2 - 4*(cos(3*d*x + 3*c) + cos(d*x + c))*sin(4*d*x + 4*c) - sin(4*d*x +
 4*c)^2 - 4*(2*sin(d*x + c) + 1)*sin(3*d*x + 3*c) - 4*sin(3*d*x + 3*c)^2 - 4*sin(d*x + c)^2 - 4*sin(d*x + c) -
 1)*log(cos(d*x + c)^2 + sin(d*x + c)^2 - 2*sin(d*x + c) + 1) + 4*(4*d*x + 8*(d*x + c)*sin(d*x + c) + 4*c + co
s(3*d*x + 3*c) + cos(d*x + c))*sin(4*d*x + 4*c) - 4*(16*(d*x + c)*cos(d*x + c) - 4*sin(d*x + c) - 1)*sin(3*d*x
 + 3*c) + 8*sin(3*d*x + 3*c)^2 + 8*sin(d*x + c)^2 + 4*sin(d*x + c))*f/(a*d*cos(4*d*x + 4*c)^2 + 4*a*d*cos(3*d*
x + 3*c)^2 + 8*a*d*cos(3*d*x + 3*c)*cos(d*x + c) + 4*a*d*cos(d*x + c)^2 + a*d*sin(4*d*x + 4*c)^2 + 4*a*d*sin(3
*d*x + 3*c)^2 + 4*a*d*sin(d*x + c)^2 + 4*a*d*sin(d*x + c) + a*d - 2*(2*a*d*sin(3*d*x + 3*c) + 2*a*d*sin(d*x +
c) + a*d)*cos(4*d*x + 4*c) + 4*(a*d*cos(3*d*x + 3*c) + a*d*cos(d*x + c))*sin(4*d*x + 4*c) + 4*(2*a*d*sin(d*x +
 c) + a*d)*sin(3*d*x + 3*c)) - 8*e*(sin(d*x + c)/(cos(d*x + c) + 1) + 3*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 +
3*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 - 1)/(a + 2*a*sin(d*x + c)/(cos(d*x + c) + 1) - 2*a*sin(d*x + c)^3/(cos(
d*x + c) + 1)^3 - a*sin(d*x + c)^4/(cos(d*x + c) + 1)^4))/d

________________________________________________________________________________________

Fricas [A]  time = 1.73828, size = 417, normalized size = 2.74 \begin{align*} \frac{4 \, d f x - 8 \,{\left (d f x + d e\right )} \cos \left (d x + c\right )^{2} + 4 \, d e - 2 \, f \cos \left (d x + c\right ) + 5 \,{\left (f \cos \left (d x + c\right ) \sin \left (d x + c\right ) + f \cos \left (d x + c\right )\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \,{\left (f \cos \left (d x + c\right ) \sin \left (d x + c\right ) + f \cos \left (d x + c\right )\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 8 \,{\left (d f x + d e\right )} \sin \left (d x + c\right )}{12 \,{\left (a d^{2} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a d^{2} \cos \left (d x + c\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*sec(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="fricas")

[Out]

1/12*(4*d*f*x - 8*(d*f*x + d*e)*cos(d*x + c)^2 + 4*d*e - 2*f*cos(d*x + c) + 5*(f*cos(d*x + c)*sin(d*x + c) + f
*cos(d*x + c))*log(sin(d*x + c) + 1) + 3*(f*cos(d*x + c)*sin(d*x + c) + f*cos(d*x + c))*log(-sin(d*x + c) + 1)
 + 8*(d*f*x + d*e)*sin(d*x + c))/(a*d^2*cos(d*x + c)*sin(d*x + c) + a*d^2*cos(d*x + c))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{e \sec ^{2}{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + 1}\, dx + \int \frac{f x \sec ^{2}{\left (c + d x \right )}}{\sin{\left (c + d x \right )} + 1}\, dx}{a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*sec(d*x+c)**2/(a+a*sin(d*x+c)),x)

[Out]

(Integral(e*sec(c + d*x)**2/(sin(c + d*x) + 1), x) + Integral(f*x*sec(c + d*x)**2/(sin(c + d*x) + 1), x))/a

________________________________________________________________________________________

Giac [B]  time = 3.82079, size = 8986, normalized size = 59.12 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*sec(d*x+c)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